﻿using System.Collections.Generic;

namespace ZSZ.Core.Entities
{
    public class RoleEntity :BaseEntity
    {
        public string Name { get; set; }


        //既可以一张表对应一个Entity，关系表也建立实体，也可以像这样直接让对象带属性，隐式的关系表
        public virtual ICollection<RolePermissionEntity> RolePermission { get; set; } = new List<RolePermissionEntity>();

        public virtual ICollection<AdminUserRoleEntity> AdminUserRoles { get; set; } = new List<AdminUserRoleEntity>();
    }
}
